package search.service.analysis;

import com.google.common.base.Optional;

/**
 * Created by julianzliu on 2016/7/3.
 */
public class EncodeDecode {

    /*************************************
     *
     * @param explain
     * @return
     */
    public static Boolean is_explain(String explain){
        Boolean is_explain = false;
        if(explain.equalsIgnoreCase("true")){
            is_explain = true;
        }
        return is_explain;
    }

    public static Boolean is_dsl(String dsl){
        Boolean is_dsl = false;
        if(dsl.equalsIgnoreCase("true")){
            is_dsl = true;
        }
        return is_dsl;
    }
}
